#-------------------------------------------------
#
# Project created by QtCreator 2016-12-09T08:31:16
#
#-------------------------------------------------
DEFINES  += D_USE_UI
DEFINES  += D_USE_CANOPEN
QT += core  xml network gui widgets serialport websockets serialbus

contains( DEFINES, D_USE_UI ){
message('TcrControllerByLib use ui')
greaterThan(QT_MAJOR_VERSION, 4)
DEFINES += D_USE_UI
SOURCES += mainwindow.cpp
HEADERS += mainwindow.h
FORMS   += mainwindow.ui


}else{
QT      -= gui
#mac
CONFIG  -= app_bundle
}

CONFIG  -= console
TEMPLATE = app


TARGET = EthercatDemo

HEADERS += \
    ../../include/MacroDefine/GeneralDefine.h\
    ../../include/MacroDefine/globalDefine.h \
    powermanagerNew.h

SOURCES += main.cpp \
    powermanagerNew.cpp
##执行文件目录
DESTDIR = ../../bin

INCLUDEPATH += ../../include/
INCLUDEPATH += ../../include/MacroDefine

INCLUDEPATH +=../EcatCore
INCLUDEPATH +=../DomParser
INCLUDEPATH +=../Md5Check
INCLUDEPATH +=../HmiGsoapQt
INCLUDEPATH +=../VrepRemoteControlor
INCLUDEPATH +=../MessageLog
INCLUDEPATH +=../MeasureTime
INCLUDEPATH += ../EcatTestForm
INCLUDEPATH += ../../include/actions/INC
INCLUDEPATH += ../../include/actions/INC/Linux
INCLUDEPATH += ../../include/ethercat-igh
INCLUDEPATH += ../XmlParse




LIBS += -L../../lib -lEcatCore
contains( DEFINES, D_USE_CANOPEN ){
message('TcrControllerByLib use CANOPEN')
LIBS += -L../../lib -lEcatCanbusCom
LIBS += -L../../lib -lCanbusDevice
}
LIBS += -L../../lib -lEcatModbusCom
#LIBS += -L../../lib -lEcatAcontis
LIBS += -L../../lib -lEcatIgh
LIBS += -L../../lib -lEcatVrep
LIBS += -L../../lib -lModbusDevice
LIBS += -L../../lib/modbus -lmodbus

LIBS += -L../../lib -lVrepRemoteControlor
LIBS += -L../../lib -lMd5Check
LIBS += -L../../lib -lDomParser
LIBS += -L../../lib -lXmlParse
LIBS += -L../../lib -lMeasureTime
LIBS += -L../../lib -lMessageLog
LIBS += -L../../lib -lTestForm
LIBS += -L../../lib -lXmlParse

LIBS += -L../../lib/controlcan -lcontrolcan

LIBS += -lpthread -lm -ldl -lrt
LIBS += -L../../lib/ethercat-igh/r8169 -lethercat
#LIBS += -L../../lib/ethercat-igh/e1000e -lethercat


#LIBS += -L../../lib/actions/LIB/Linux/x64 -lEcMaster
#LIBS += -L../../lib/actions/LIB/Linux/x64 -lAtemRasSrv
#LIBS += -L../../lib/actions/LIB/Linux/x64 -lemllCCAT
#LIBS += -L../../lib/actions/LIB/Linux/x64 -lemllI8254x
#LIBS += -L../../lib/actions/LIB/Linux/x64 -lemllSockRaw

#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory/EthercatDemo
MOC_DIR +=../../build/tmpBuildDirectory/EthercatDemo
OBJECTS_DIR += ../../build/tmpBuildDirectory/EthercatDemo
RCC_DIR += ../../build/tmpBuildDirectory/EthercatDemo

